<template>
  <div>
    <h2>总价值: {{ $store.getters.totalPrice }}</h2>
    <h2>总价值: {{ $store.getters.totalPriceCountGreaterN(3) }}</h2>
    <h2>{{ sName }}</h2>
    <h2>{{ sage }}</h2>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  computed: {
    // ...mapGetters(["nameInfo", "ageInfo", "heightInfo"]),
    ...mapGetters({
      sName: "nameInfo",
      sage: "ageInfo",
    }),
  },
  setup() {},
};
</script>

<style scoped>
</style>